<%-- 
    Document   : viewProperty
    Created on : 6 déc. 2011, 17:33:19
    Author     : Sébastien
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>View Properties</title>
    </head>
    <body>
        <fmt:setLocale value="en_ca" />

        <h1 align="center"> ${title} </h1>

        <c:forEach var="property" items="${catalog.properties}">
            <hr>
         
                <form action="addToVisitingList.do">
                <input type="hidden" name="id" VALUE= "${property.id}">

                <h2>Informations about:</h2><br />
                <p>
                Type of the property: <c:out value= "${property.type}" /><br /><br />
                Number of Bedrooms: <c:out value="${property.numberBedroom}" /><br />
                Number of Bathrooms: <c:out value="${property.numberBathroom}"/><br />
                Number of other Rooms: <c:out value="${property.numberOtherRoom}"/><br />
                Address of the Property: <c:out value= "${property.adress}" /><br />
                Location : <c:out value= "${property.location}" /><br /><br />
                Rent : <fmt:formatNumber value="${property.rent}" type="currency"/>
                </p>
                <center><input type="submit" value="Add To Visiting List"></center>
                </form>
        </c:forEach>
    </body>
</html>
